﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TempEquipmentEdit.aspx.cs" Inherits="DuJianliang.ApplicationPlatform.TempEquipment.TempEquipmentEdit" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link rel="Stylesheet" type="text/css" href="../Styles/Style.css" />
    <script type="text/javascript" src="../../Scripts/common.js"></script>
    <script defer="defer" src="../../Scripts/My97DatePicker/WdatePicker.js" type="text/javascript"></script> 
    <script type="text/javascript">
        function showPage(url, width, height) {
            window.showModalDialog(encodeURI(url), "", "dialogWidth=" + width + ";dialogHeight=" + height);
        }
    </script>  
</head>
<body>
    <form id="form1" runat="server">
       <div id="win" class="x-hidden">
       
    </div>
    <div>
        <table id="table" border="0" cellspacing="1" cellpadding="1" bgcolor="#FFFFFF">
        <tr>
            <td class="tdHeader" colspan="6">临时器材申请单</td>            
        </tr>
        <tr>
          <td nowrap="nowrap" class="td1">编号：</td>
          <td class="td2"></td>
          <td colspan="4" class="td3">
              <asp:Label ID="lbl_Code" runat="server"></asp:Label>
            </td>
          </tr>
        <tr>
            <td width="80" nowrap="nowrap" class="td1">提出单位</td>
            <td width="3" class="td2"></td>
            <td width="279" class="td3">
                <asp:TextBox ID="txt_applyDepartment" runat="server" Width="98%" 
                    Enabled="False"></asp:TextBox>
        
            </td>
            <td width="151" class="td1">提出人</td>
            <td width="6" class="td2">&nbsp;</td>
            <td width="167" class="td3">
                <asp:TextBox ID="txt_applyPerson" runat="server" Width="98%" Enabled="False"></asp:TextBox>
        
            </td>
        </tr>
        <tr>
            <td nowrap="nowrap" class="td1">用于何种产品</td>
            <td class="td2"></td>
            <td colspan="4" class="td3">
                <asp:TextBox ID="txt_usedFor" runat="server" Width="98%"></asp:TextBox></td>           
        </tr>
        <tr>
            <td nowrap="nowrap" class="td1">申请理由</td>
            <td class="td2"></td>
            <td colspan="4" class="td3">
                <asp:TextBox ID="txt_applyReason" runat="server" Width="98%" Rows="4" 
                    TextMode="MultiLine"></asp:TextBox></td>            
        </tr>
        <tr>
            <td nowrap="nowrap" class="td1">要求解决日期</td>
            <td class="td4"></td>
            <td class="td3">
                 <asp:TextBox ID="txt_needDate" runat="server" onClick="WdatePicker()" 
                     Width="98%"></asp:TextBox>
                </td>
            <td nowrap="nowrap" class="td1">解决日期</td>
            <td class="td4">&nbsp;</td>
            <td class="td3">
             <asp:TextBox ID="txt_factDate" runat="server" onClick="WdatePicker()" Width="98%"></asp:TextBox>
            </td>            
        </tr>
        <tr>
            <td class="tdBottom" colspan="6">                
                <asp:Button ID="btnOK" runat="server" Text="确定" Height="25px" Width="80px" 
                    onclick="btnOK_Click" />
                &nbsp;<asp:Button ID="btn_Back" runat="server" Text="返回" Height="25px" 
                    Width="80px" onclick="btn_Back_Click"  />
            &nbsp;
                <asp:Button ID="btn_Add" runat="server" Text="新增器材" Height="25px" 
                    Width="80px" onclick="btn_Add_Click"    />
            </td>            
        </tr>     
    </table>
    </div>
    <div>
        
        <asp:GridView ID="grv" runat="server" AutoGenerateColumns="False" 
                CellPadding="4" Font-Size="9pt" ForeColor="#333333" CssClass="grid"
                Width="760px"  DataKeyNames="ID" onrowcommand="grv_RowCommand" 
            onrowdatabound="grv_RowDataBound" >                                   
                <Columns>
                    <asp:BoundField HeaderText="器材名称" DataField="equipmentName" 
                        ItemStyle-Width="100px" >
<ItemStyle Width="100px"></ItemStyle>
                    </asp:BoundField>
                    <asp:BoundField HeaderText="型号规格" DataField="Model" ItemStyle-Width="60px" >
<ItemStyle Width="160px"></ItemStyle>
                    </asp:BoundField>
                    <asp:BoundField HeaderText="单位"  DataField="unit" ItemStyle-Width="50px" >
          
<ItemStyle Width="50px"></ItemStyle>
                    </asp:BoundField>
          
                    <asp:BoundField HeaderText="数量" DataField="amount"  >
                    <ItemStyle Width="60px"></ItemStyle>
                    </asp:BoundField>
                    <asp:BoundField HeaderText="备注" DataField="reMark"  />
                  
                  
                    <asp:TemplateField HeaderText="操作" ItemStyle-Width="130px" ItemStyle-HorizontalAlign="Center">
                        <ItemTemplate>
                         
                            <asp:Button ID="btnEdit" runat="server" Text="编辑" Height="20px" CommandName="CmdEdit" ></asp:Button>                            
                      
                            <asp:Button ID="btnDelete" OnClientClick="return confirm('您确定要删除该记录吗？');" runat="server" Text="删除" Height="20px" CommandName="del" CommandArgument='<%# Eval("ID")%>'></asp:Button>
                        </ItemTemplate>

                        <HeaderStyle HorizontalAlign="Center" />

<ItemStyle HorizontalAlign="Left" Width="100px"></ItemStyle>
                    </asp:TemplateField>
                </Columns>
                <HeaderStyle BackColor="#DFE8F6" Font-Bold="True" ForeColor="#333333" Height="20px" />    
                <RowStyle BackColor="#FAFAFA" ForeColor="#333333" HorizontalAlign="Center"/>
                <EmptyDataTemplate>
                    <div style="text-align:center; margin-top:20px; margin-bottom:20px;">当前没有任何数据</div>        
                </EmptyDataTemplate>
        </asp:GridView>
        
    </div>
    </form>
</body>
</html>
